<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            display: flex;
            background-color: black;
            border-radius: 1rem;
            padding: 1rem;
            justify-content: space-between;
        }

        .left {
            width: 100%;
            display: flex;
            background-color:hotpink;
            border-radius: 1rem;
            padding: 1rem;
            justify-content: flex-start;
        }

        .middle {
            width: 100%;
            display: flex;
            background-color: rgb(173, 50, 128);
            border-radius: 1rem;
            padding: 1rem;
            justify-content: center;
        }

        .right {
            display: flex;
            width: 100%;
            background-color: rgb(9, 94, 90);
            border-radius: 1rem;
            padding: 1rem;
            justify-content: flex-end;
        }

        .item {
            /* margin: 1rem; */
            border-radius: 2rem;
            background-color: #fff;
            height: 2rem;
            width: 2rem;
        }

        .reverse-container{
           display: flex;
           flex-direction: row-reverse;
           background-color: lightseagreen;
           padding: 1rem;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="left">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
        <div class="middle">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
        <div class="right">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
    </div>

    <div class="reverse-container">
        <div class="left">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
        <div class="middle">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
        <div class="right">
            <div class="item"></div>
            <div class="item"></div>
            <div class="item"></div>
        </div>
    </div>
</body>

</html>